<?php


namespace App\Event;

/**
 * 严重的错误日志事件
 * Class LoggerFearful
 * @package App\Event
 */
class LoggerFearful
{

    public $logType;
    public $message;
    public $name;
    public $group;

    public function __construct($logType, $message, $name, $group)
    {
        $this->logType = $logType;
        $this->message = $message;
        $this->name = $name;
        $this->group = $group;
    }

    public function getSentMessage()
    {
        return sprintf('[%s]%s:%s', $this->logType, $this->name, $this->message);
    }
}